package com.gaohe.system.service.impl;

import com.gaohe.common.core.domain.entity.SysRole;
import com.gaohe.system.domain.vo.AuthAboutVo;
import com.gaohe.system.mapper.AuthAboutMapper;
import com.gaohe.system.mapper.SysRoleMapper;
import com.gaohe.system.service.IAuthAboutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class AuthAboutServiceImpl implements IAuthAboutService {

    @Autowired
    private AuthAboutMapper authAboutMapper;
    @Override
    public List<AuthAboutVo> selectPatientsByUserId(Long userId) {
        return authAboutMapper.selectPatientsByUserId(userId);
    }
    @Override
    public List<AuthAboutVo> selectPatientsBypatientId(Long patientId) {
        return authAboutMapper.selectPatientsBypatientId(patientId);
    }

    @Override
    public int updateStatus(AuthAboutVo authAboutVo) {
        return authAboutMapper.updateStatus(authAboutVo);
    }
}
